﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace net.zxteam.ZXLexer.Rules.Internal
{
	internal abstract class InnerRule : Rule, IInnerRule
	{
		private readonly IRule _parent;

		public InnerRule(IRule parentRule)
		{
			if (parentRule == null) throw new ArgumentNullException();

			_parent = parentRule;
		}

		public IRule Parent { get { return _parent; } }
	}
}
